import { _decorator, Component, MeshRenderer, Node, v4 } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('LeiSui')
export class LeiSui extends Component {
    @property(MeshRenderer)
    Lei: MeshRenderer = null;

    private LeiSuiNum: number = 0;
    update(deltaTime: number) {
        this.Lei.materials[0].setProperty("tilingOffset", v4(1, 3, 0, this.LeiSuiNum -= 0.1))
    }
}


